package com.example.birdfriends.pojo.message;


import java.sql.Timestamp;

public class Message {
    private Long mid;
    private Long senderId;
    private Long receiverId;
    private Timestamp createAt;
    private String msg;
    private int isRead;

    @Override
    public String toString() {
        return "Message{" +
                "mid=" + mid +
                ", senderId=" + senderId +
                ", receiverId=" + receiverId +
                ", createAt=" + createAt +
                ", msg='" + msg + '\'' +
                ", isRead='" + isRead + '\'' +
                '}';
    }

    public void print() {
        System.out.println("Message{" +
                "mid=" + mid +
                ", senderId=" + senderId +
                ", receiverId=" + receiverId +
                ", createAt=" + createAt +
                ", msg='" + msg + '\'' +
                ", isRead='" + isRead + '\'' +
                '}');
    }

    public void setIsRead(int isRead) {
        this.isRead = isRead;
    }

    public int getIsRead() {
        return isRead;
    }

    public void setMid(Long mid) {
        this.mid = mid;
    }

    public void setSenderId(Long senderId) {
        this.senderId = senderId;
    }

    public void setReceiverId(Long receiverId) {
        this.receiverId = receiverId;
    }

    public void setCreateAt(Timestamp createAt) {
        this.createAt = createAt;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Long getMid() {
        return mid;
    }

    public Long getSenderId() {
        return senderId;
    }

    public Long getReceiverId() {
        return receiverId;
    }

    public Timestamp getCreateAt() {
        return createAt;
    }

    public String getMsg() {
        return msg;
    }
}
